Developer Documentation

QuickTime 4 API Documentation

QuickTime 4 Reference

| Previous | Chapter Contents | Chapter Top | Next |

Getting MIME Types

Your graphics import component can support MIME types that correspond to graphics formats it supports. To make a list of these MIME types available to applications or other software, it must implement the GraphicsImportGetMIMETypeList function described in this section.


GraphicsImportGetMIMETypeList

Returns a list of MIME types supported by the graphics import component.

pascal ComponentResult GraphicsImportGetMIMETypeList (
                     GraphicsImportComponent ci,
                     QTAtomContainerPtr*);

ci
Specifies an instance of a graphics importer component.
QTAtomContainerPtr
A pointer to a MIME type list, a QT atom container that contains a list of MIME types supported by the graphics import component. The MIME type list structure is described in "MIME Type List" [link] .

DISCUSSION

To indicate that your graphics import component supports this function, set the hasMovieImportMIMEList flag in the componentFlags field of the component description record.

This function does not access any file-specific information.

RESULT CODES

noErr
0 No error
paramErr
-50 Invalid parameter specified
memFullErr
-108 Not enough memory available
badComponentSelector
0x80008002 Component does not support the specified request code

© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |